import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/userManagement/getList',
    method: 'post',
    data,
  })
}

export function UserSel(data) {
  return request({
    url: '/User/UserSel',
    method: 'get',
    params: data,
  })
}
export function MemoAdd(data) {
  return request({
    url: '/User/MemoAdd',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/userManagement/doEdit',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/userManagement/doDelete',
    method: 'post',
    data,
  })
}
export function AccountSel(data) {
  return request({
    url: '/Account/AccountSel',
    method: 'get',
    params: data,
  })
}
//添加账号
export function AccountAdd(data) {
  return request({
    url: '/Account/AccountAdd',
    method: 'POST',
    data,
  })
}
//编辑账号
export function AccountUpd(data) {
  return request({
    url: '/Account/AccountUpd',
    method: 'POST',
    data,
  })
}
//改变账号启用状态
export function AccountEnabel(data) {
  return request({
    url: '/Account/AccountEnabel',
    method: 'get',
    params: data,
  })
}
//修改密码
export function AccountPwdChange(data) {
  return request({
    url: '/Account/AccountPwdChange',
    method: 'POST',
    data,
  })
}
